package com.system.model.mind;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.system.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 程序用户
 * </p>
 *
 * @author system
 * @since 2024-02-24
 */
@Data
@ApiModel(description = "程序用户")
@TableName("user_program")
public class UserProgram extends BaseEntity {

    private static final long serialVersionUID = 1L;

//    /**
//     * 主键
//     */
//      @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;

    /**
     * appid唯一标识
     */
    @ApiModelProperty(value = "appid唯一标识")
    @TableField("openid")
    private String openid;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    @TableField("nickname")
    private String nickname;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    @TableField("head_portraits")
    private String headPortraits;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @TableField("phone_number")
    private String phoneNumber;

    /**
     * 消费情况/元
     */
    @ApiModelProperty(value = "消费情况/元")
    @TableField("consume")
    private BigDecimal consume;

    /**
     * 预约咨询师id
     */
    @ApiModelProperty(value = "预约咨询师id")
    @TableField("consultid")
    private String consultid;

    //数据库中没有的字段
    @TableField(select = false, exist = false)
    private String code;

//    /**
//     * 创建时间
//     */
//    private LocalDate createTime;
//
//    /**
//     * 更新时间
//     */
//    private LocalDate updateTime;


}
